home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / tools / 21help.com / 21H2.TXT < prev    next >
Encoding:
Text File  |  1988-10-14  |  20.5 KB  |  434 lines

  1. INTERRUPT:     10H      VIDEO SERVICES    Functions 00H thru 08H
  2.  
  3. FUNCTION:      00H      SET VIDEO MODE - selects and installs a new video 
  4.                display mode 
  5. CALL:          AH = 0
  6.                AL = display mode
  7.     00H - 40x25 B/W text, color adapter     01H - 40x25 color text
  8.     02H - 80x25 B/W text                    03H - 80x25 color text
  9.     04H - 320x200 graphics, 4 color         05H - same as 04H, color burst off
  10.     06H - 640x200 graphics, 2 color         07H - 80x25 monochrome text
  11.     08H - PCjr                              09H - PCjr
  12.     0AH - PCjr                              0DH - 320x200 graphics, 16 color
  13.     0EH - 640x200 graphics, 16 color        0FH - 640x350 monochrome graphics
  14.     10H - 640x350 graphics, 16 color
  15.                See reference book for additional Multi-Sync monitor modes
  16.  
  17. FUNCTION:      01H      SET CURSOR TYPE - selects the starting and ending scan 
  18.                lines for blinking cursor; text modes only. 
  19. CALL:          AH = 01H
  20.                CH = starting scan line for cursor
  21.                CL = ending scan line for cursor
  22.  
  23.      ANY KEY FOR MORE          <F1> - PRIOR MENU          <ESC> - EXIT@
  24.  
  25. FUNCTION:      02H      SET CURSOR POSITION - positions cursor on specified 
  26.                video page 
  27. CALL:          AH = 02H
  28.                BH = video page number
  29.                DH = row (1st display row = 0)
  30.                DL = column (1st display column = 0)
  31.  
  32. FUNCTION:      03H      READ CURSOR STATUS - returns the current position and 
  33.                size of the cursor; text modes only.
  34. CALL:          AH = 03H
  35.                BH = video page number
  36. RETURNS:       CH = starting scan line             CL = ending scan line
  37.                DH = row (1st display row = 0)      DL = column (1st column = 0)
  38.  
  39. FUNCTION:      04H      READ LIGHT PEN POSITION - see manual for details
  40.  
  41. FUNCTION:      05H      SELECT DISPLAY PAGE - selects the active video page
  42. CALL:          AH = 05H
  43.                AL = video page number (0 thru 7, depending on mode and adapter)
  44.  
  45.  
  46.   ANY KEY FOR MORE    <UP> - PRIOR PAGE   <F1> - PRIOR MENU      <ESC> - EXIT@
  47. FUNCTION:      06H      INITIALIZE WINDOW OR SCROLL WINDOW UP - initializes 
  48.                and clears a specified window or scrolls the contents of a 
  49.                window up.
  50. CALL:          AH = 06H
  51.                AL = number of rows to scroll up (if 0, clears entire window)
  52.                BH = attribute for blanked out area
  53.                CH = upper left row of window   CL = upper left column of window
  54.                DH = lower right row of window  DL = lower right column of window
  55.  
  56. FUNCTION:      07H      INITIALIZE WINDOW OR SCROLL WINDOW DOWN - initializes 
  57.                and clears a specified window or scrolls the contents of a 
  58.                window down. 
  59. CALL:          AH = 07H
  60.                AL = number of rows to scroll down (if 0, clears entire window)
  61.                BH = attribute for blanked out area
  62.                CH = upper left row of window   CL = upper left column of window
  63.                DH = lower right row of window  DL = lower right column of window
  64.  
  65. FUNCTION:      08H      READ ATTRIBUTE AND CHARACTER AT CURSOR - returns the 
  66.                ASCII character code and the attribute at the current cursor 
  67.                position. 
  68. CALL:          AH = 08H
  69.                AL = video page number
  70. RETURNS:       AH = attribute byte            AL = ASCII character code
  71.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  72.  
  73. INTERRUPT:     10H      VIDEO SERVICES    Functions 09H thru 0EH
  74. FUNCTION:      09H      WRITE CHARACTER(S) AND ATTRIBUTE AT CURSOR - displays a 
  75.                character and attribute one or more times at the cursor 
  76.                position; does not recognize control codes - LF, CR, BS, etc -; 
  77.                does not update cursor position; use function 02H to move 
  78.                cursor to next position. 
  79. CALL:          AH = 09H
  80.                AL = ASCII character code to be displayed
  81.                BH = video page
  82.                BL = attribute (text mode) or color (graphics mode)
  83.                CX = repetition factor (number of times to display character)
  84.  
  85. FUNCTION:      0AH      WRITE CHARACTER(S) ONLY AT CURSOR - displays a character 
  86.                only, one or more times at the cursor position; character 
  87.                assumes the current attribute; does not recognize control codes 
  88.                - LF, CR, BS, etc -; does not update cursor position; use 
  89.                function 02H to move cursor to next position. 
  90. CALL:          AH = 0AH
  91.                AL = ASCII character code to be displayed
  92.                BH = video page
  93.                BL = immaterial (text mode) or color (graphics mode)
  94.                CX = repetition factor (number of times to display character)
  95.  
  96.  
  97.   ANY KEY FOR MORE              <F1> - PRIOR MENU                <ESC> - EXIT@
  98.  
  99. FUNCTION:      0BH      SET BORDER COLOR OR SELECT 4 COLOR PALETTE - parameters
  100.                below are valid for CGA adapter; in text mode, border can be 
  101.                set to a specific color; in graphics mode (320x200), selects 
  102.                one of two different, 4 color palettes; see manual for details 
  103.                relating to other adapters. 
  104. CALL:          AH = 0BH
  105.                BH = 0  to set border
  106.                     1  to select palette
  107.                BL = border color value if BH = 0
  108.                     palette value (0 or 1) if BH = 1
  109.                 
  110. FUNCTION:      0CH      WRITE GRAPHICS PIXEL - displays one pixel at a 
  111.                specified location; parameters below are valid for CGA adapter, 
  112.                see manual for details relating to other adapters. 
  113. CALL:          AH = 0CH
  114.                AL = pixel value 
  115.                     0 - 3 acceptable values for modes 04H and 05H
  116.                     0 or 1 acceptable values for mode 06H
  117.                     if bit 7 = 1, new value XOR'd with current pixel value
  118.                CX = x graphics coordinate (acceptable range is mode dependent)
  119.                DX = y graphics coordinate (acceptable range is mode dependent)
  120.  
  121.   ANY KEY FOR MORE    <UP> - PRIOR PAGE   <F1> - PRIOR MENU      <ESC> - EXIT@
  122.  
  123. FUNCTION:      0DH      READ GRAPHICS PIXEL - returns current value of a 
  124.                pixel at a specified location; parameters below are valid for 
  125.                CGA adapter, see manual for details relating to other adapters. 
  126. CALL:          AH = 0DH
  127.                CX = x graphics coordinate (acceptable range is mode dependent)
  128.                DX = y graphics coordinate (acceptable range is mode dependent)
  129. RETURNS:       AL = pixel value 
  130.                     0 - 3 acceptable values for modes 04H and 05H
  131.                     0 or 1 acceptable values for mode 06H
  132.  
  133. FUNCTION:      0EH      WRITE CHARACTER IN TELETYPE (TTY) MODE - displays a 
  134.                character at the current cursor position on the current video 
  135.                page; recognizes control characters - LF, CR, BS, etc; updates 
  136.                cursor position; recognizes maximum display columns and rows and 
  137.                will scroll screen automatically; in text mode, character 
  138.                displayed assumes current attribute. 
  139. CALL:          AH = 0EH
  140.                AL = ASCII code to be displayed
  141.                BL = foreground pixel value (graphics)
  142.  
  143.  
  144.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  145.  
  146. INTERRUPT:     10H      VIDEO SERVICES    Functions 0F thru 1CH
  147.  
  148. FUNCTION:      0FH      RETURN CURRENT VIDEO STATUS - returns information 
  149.                about the current video mode.
  150. CALL:          AH = 0FH
  151. RETURNS:       AH = number of displayed character columns
  152.                AL = video mode (see function 00H for mode descriptions)
  153.                BH = active video page
  154.  
  155. SEE A MANUAL FOR THE FOLLOWING INT 10H FUNCTIONS:
  156.                10H - Set Palette Registers, Set Intensity/Blink Attribute
  157.                11H - Character Generator Interface
  158.                12H - Video Subsystem Configuration (Alternate Select)
  159.                13H - Display Character String
  160.                1AH - Video Display Combination
  161.                1BH - Video Bios Functionality/State Information
  162.                1CH - Save or Restore Video State
  163.                 
  164.  
  165.  
  166.                 <F1> - PRIOR MENU                <ESC> - EXIT$
  167. INTERRUPT:     011H     EQUIPMENT DETERMINATION - returns information about 
  168.                the current system configuration. 
  169. CALL:          No input required
  170. RETURNS:       AX = Equipment Information
  171.                Bit           Description
  172.                15,14    Number of printers installed
  173.                13       Not Used
  174.                12       Game Adapter attached
  175.                11-9     Number of RS232 cards
  176.                8        Unused
  177.                7,6      Number disk drives (if Bit 0=1, 00=1, 01=2, 10=3, etc.)
  178.                5,4      Video Mode
  179.                               00  Unused
  180.                               01  40x25 color card
  181.                               10  80x25 color card
  182.                               11  80x25 monochrome
  183.                3,2      RAM on motherboard
  184.                               00  16K
  185.                               01  32K
  186.                               10  48K
  187.                               11  64K
  188.                1        Not used
  189.                0        1     disk drive(s) installed
  190.  
  191.                 <F1> - PRIOR MENU                <ESC> - EXIT$
  192. INTERRUPT:     12H     MEMORY SIZE DETERMINATION - returns the amount of 
  193.                installed RAM on the motherboard
  194. CALL:          No input required
  195. RETURNS:       AX = kilobytes of installed memory
  196.  
  197.                 <F1> - PRIOR MENU                <ESC> - EXIT$
  198. INTERRUPT:     13H      DISK SERVICES
  199.  
  200. FUNCTION:      00H      RESET DISK - resets the disk controller and prepares 
  201.                for disk I/O.
  202. CALL:          AH = 00H
  203.  
  204. FUNCTION:      01H      GET DISK SYSTEM STATUS - returns the status of the 
  205.                disk system after the last disk operation.
  206. CALL:          AH = 01H
  207.                DL = 0 to 3 for floppies and 80H-87H for hard disk
  208. RETURNS:       if successful, Carry Flag = Clear
  209.                if unsuccessful, Carry Flag = Set
  210.                AL = error code from last operation
  211.                00  No error                01  invalid command
  212.                02  address mark not found  03  write protect error
  213.                04  sector not found        05  reset failed
  214.                07  invalid drive parameter 09  DMA segment wrap
  215.               0BH  bad track flag         10H  bad error check
  216.               11H  data error corrected   20H  controller failure
  217.               40H  seek failure           80H  no disk response
  218.              0BBH  undefined error       0FFH  sense operation failure
  219.  
  220.  
  221.  
  222.   ANY KEY FOR MORE          <F1> - PRIOR MENU                 <ESC> - EXIT@
  223. FUNCTION:      02H/03H      READ/WRITE SECTORS - reads/writes specific 
  224.                sector(s) between RAM and the disk; should only be used with 
  225.                great care and a thorough understanding of disk/drive 
  226.                architecture; use DOS INT 25H or 26H if direct sector 
  227.                operations required, otherwise use INT 21H functions.
  228. CALL:          AH = 02H    if sector read
  229.                     03H    if sector write
  230.                AL = number of sectors (8 max - floppies, 80H max - hard disk)
  231.                DL = drive number (0-3 for floppies, 80-87H for hard disk)
  232.                DH = head number
  233.                CL = sector # (bits 0-5, bits 6,7 for cylinder #s >0FFH)
  234.                CH = cylinder #  (low 8 bits if >0FFH) or track # (floppies)
  235.                ES:BX = Segment:Offset of buffer for reads/writes
  236. RETURNS:       if successful   -   Carry Flag = Clear
  237.                if unsuccessful -   Carry Flag = Set 
  238.                                            AH = error code  - see function 01H)
  239. FUNCTION:      04H      VERIFY DISK SECTORS - verifies the specified sectors 
  240.                on the disk; errors will be returned in AH.
  241. CALL:          AH = 04H
  242.                AL = number of sectors
  243.                DX and CX - see Function 02H
  244. RETURNS:       if successful   -   Carry Flag = Clear
  245.                if unsuccessful -   Carry Flag = Set 
  246.                                            AH = error code  - see function 01H)
  247.   ANY KEY FOR MORE    <UP> - PRIOR PAGE   <F1> - PRIOR MENU      <ESC> - EXIT@
  248.  
  249. SEE A MANUAL FOR THE FOLLOWING INT 13H FUNCTIONS:
  250.                05H  Format Track
  251.                06H  Format Track and Set Bad Sector Flags (hard disk only)
  252.                07H  Format Disk Starting At Specified Track     "
  253.                08H  Return Drive Parameters                     "
  254.                09H  Initialize Drive                            "
  255.                0AH  Read Long Sectors                           "
  256.                0BH  Write Long Sectors                          "
  257.                0CH  Seek                                        "
  258.                0DH  Alternate Disk Reset                        "
  259.                0EH  Read Sector Buffer                          "
  260.                0FH  Write Sector Buffer                         "
  261.                10H  Test Drive Ready                            "
  262.                11H  Recalibrate Drive                           "
  263.                12H  RAM Diagnostic                              "
  264.                13H  Drive Diagnostic                            "
  265.                14H  Controller Diagnostic                       "
  266.  
  267.  
  268.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  269. INTERRUPT:     14H      SERIAL PORT SERVICES
  270. FUNCTION:      00H      INITIALIZE SERIAL PORT - initializes the serial port 
  271.                to a desired baud rate, parity, word length and the number of 
  272.                stop bits.
  273. CALL:          AH = 00H
  274.                AL = initialization parameter
  275.                Bit 1,0:    10 = 7 bit word,  11 = 8 bit word
  276.                Bit 2  :    0 = 1 stop bit, 1 = 2 stop bits  
  277.                Bits 4,3:   00 = no parity, 01 = odd parity, 11 = even parity
  278.                Bits 7,6,5: 000 = 110 Baud, 001 = 150 Baud, 010 = 300 Baud
  279.                            011 = 600 Baud, 100 = 1200 Baud, 101 = 2400 Baud
  280.                            110 = 4800 Baud, 111 = 9600 Baud
  281.                DX = port number (0 = COM1, 1 = COM2, etc.)
  282.  
  283. FUNCTION:      01H      WRITE CHARACTER TO SERIAL PORT - writes a character to 
  284.                the serial port, returning the current port status.
  285. CALL:          AH = 01H
  286.                AL = character to be sent
  287.                DX = port number (0 = COM1, 1 = COM2, etc.)
  288. RETURNS:       if successful
  289.                         AH bit 7 = 0    AL = unchanged
  290.                if unsuccessful
  291.                         AH bit 7 = 1    AL = unchanged
  292.                See Function 03H for meaning of Bits 0-6 in AH     
  293.   ANY KEY FOR MORE            <F1> - PRIOR MENU                 <ESC> - EXIT@
  294. FUNCTION:      02H      READ CHARACTER FROM SERIAL PORT - reads a character to 
  295.                the serial port, returning the current port status.
  296. CALL:          AH = 02H
  297.                DX = port number (0 = COM1, 1 = COM2, etc.)
  298. RETURNS:       if successful
  299.                         AH bit 7 = 0     AL =  character received
  300.                if unsuccessful
  301.                         AH bit 7 = 1   
  302.                See Function 03H for meaning of Bits 0-6 in AH     
  303.  
  304. FUNCTION:      03H      SERIAL PORT STATUS - returns the status of the 
  305.                specified serial port.
  306. CALL:          AH = 02H
  307.                DX = port number (0 = COM1, 1 = COM2, etc.)
  308. RETURNS:       AH = port status (Bits 0-6 returned in AH in Functions 01H, 02H)
  309.                  Bit 7 set - timed out           
  310.                  Bit 6 set - shift register empty
  311.                  Bit 5 set - hold register empty 
  312.                  Bit 4 set - break detected
  313.                  Bit 3 set - framing error       
  314.                  Bit 2 set - parity error
  315.                  Bit 1 set - overrun error       
  316.                  Bit 0 set - data ready
  317.  
  318.   ANY KEY FOR MORE    <UP> - PRIOR PAGE   <F1> - PRIOR MENU      <ESC> - EXIT@
  319.  
  320. RETURNS:(contd)  AL = modem status
  321.                    Bit 7 set - receive line signal detected
  322.                    Bit 6 set - ring indicator  
  323.                    Bit 5 set - data set ready
  324.                    Bit 4 set - clear to send   
  325.                    Bit 3 set - change in receive line signal detected
  326.                    Bit 2 set - trailing edge ring indicator
  327.                    Bit 1 set - change in data set ready
  328.                    Bit 0 set - change in clear to send
  329.  
  330.  
  331.  
  332.  
  333.  
  334.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  335. INTERRUPT:     16h      KEYBOARD SERVICES
  336.  
  337. FUNCTION:      00H      READ CHARACTER FROM KEYBOARD - waits for a key to be 
  338.                pressed and then returns its ASCII character code and scan code. 
  339. CALL:          AH = 00H
  340. RETURNS:       AH = keyboard scan code
  341.                AL = ASCII character code
  342.  
  343. FUNCTION:      01H      READ KEYBOARD STATUS - determines if a character is 
  344.                ready to be read; if so returns a flag and the character; 
  345.                character remains in the buffer awaiting a read call.
  346. CALL:          AH = 01H
  347. RETURNS:       if key waiting
  348.                         Zero Flag = Clear
  349.                                AH = scan code
  350.                                AL = ASCII character code
  351.                if no key waiting
  352.                         Zero Flag = Set
  353.  
  354.  
  355.   ANY KEY FOR MORE            <F1> - PRIOR MENU                 <ESC> - EXIT@
  356.  
  357. FUNCTION:      01H      READ KEYBOARD FLAGS - returns the BIOS flag byte 
  358.                describing the state of the various keyboard toggle and shift 
  359.                keys. 
  360. CALL:          AH = 02H
  361. RETURNS:       AL = keyboard flag byte
  362.                         Bit 7 set - Insert on
  363.                         Bit 6 set - Caps Lock on
  364.                         Bit 5 set - Num Lock on
  365.                         Bit 4 set - Scroll Lock on
  366.                         Bit 3 set - Alt key down
  367.                         Bit 2 set - Ctl key down
  368.                         Bit 1 set - Left Shift down
  369.                         Bit 0 set - Right Shift down
  370.  
  371.  
  372.  
  373.  
  374.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  375. INTERRUPT:     17H      PRINTER SERVICES
  376. FUNCTION:      00H      WRITE CHARACTER TO PRINTER - sends a character to 
  377.                specified parallel printer and returns the current status of 
  378.                port.
  379. CALL:          AH = 00H
  380.                AL = ASCII character code to be sent
  381.                DX = printer number (0 -2)
  382. RETURNS:       AH = printer status
  383.                         Bit 7 set - print not busy
  384.                         Bit 6 set - acknowledge
  385.                         Bit 5 set - out of paper
  386.                         Bit 4 set - printer selected
  387.                         Bit 3 set - I/O error
  388.                         Bit 2 set - unused
  389.                         Bit 1 set - unused
  390.                         Bit 0 set - timed out
  391.  
  392. FUNCTION:      01H      INITIALIZE PRINTER PORT - initializes the specified 
  393.                printer port and returns its status.
  394. CALL:          AH = 01H
  395.                DX = printer number (0 -2)
  396. RETURNS:       AH = printer status
  397.                         See Function 00H for details         
  398.  
  399.   ANY KEY FOR MORE            <F1> - PRIOR MENU                 <ESC> - EXIT@
  400.  
  401. FUNCTION:      02H      PRINTER STATUS REQUEST - returns the status of the 
  402.                specified printer port.
  403. CALL:          AH = 02H
  404.                DX = printer number (0 -2)
  405. RETURNS:       AH = printer status
  406.                         See Function 00H for details
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.        <UP> - PRIOR PAGE         <F1> - PRIOR MENU           <ESC> - EXIT$
  414. INTERRUPT:     1AH      TIME OF DAY SERVICES
  415.  
  416. FUNCTION:      00H      READ TIME OF DAY - returns the value of the system 
  417.                timer expressed in the number of ticks since midnight; 18.204 
  418.                ticks = 1 second; 65,536 ticks per hour; can be used to time an 
  419.                event. 
  420. CALL:          AH = 00H
  421. RETURNS:       CX = high word of count (the hour in a 24 hour day)
  422.                DX = low word of count
  423.                AL = 0 if timer has not passed 24 hours since last read
  424.  
  425. FUNCTION:      01H      SET TIME OF DAY - sets the value of the system timer 
  426.                using the same format as returned in Function 00H. 
  427. CALL:          AH = 01H
  428. RETURNS:       CX = high word of count (the hour of a 24 hour day)
  429.                DX = low word of count
  430.  
  431.  
  432.                 <F1> - PRIOR MENU              <ESC> - EXIT$
  433.  
  434.